package com.marvels.financial.task.tasklet;

import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;
import org.springframework.beans.factory.annotation.Autowired;

import com.marvels.common.utils.MarvelsLogUtil;
import com.marvels.financial.loan.service.ShzxDeleteDataJobApi;


/**
 * 上海资信上传数据删除
 * @author wujunfeng
 *
 */
public class ShzxDeleteDataTasklet implements Tasklet{
	
	@Autowired
	private ShzxDeleteDataJobApi shzxDeleteDataJobApi;
	
	@Override
	public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
		try{
			MarvelsLogUtil.getInstance().info(">>>>>>上海资信个人数据删除上传任务开始");
			// shzxDeleteDataJobApi.shzxDeleteData();
			MarvelsLogUtil.getInstance().info(">>>>>>上海资信个人数据删除上传任务结束");
		} catch (Throwable e) {
			MarvelsLogUtil.getInstance().error("ShzxDeleteDataTasklet-execute-->上海资信个人数据删除上传任务异常:",e);
			throw new Exception("ShzxDeleteDataTasklet-execute-->上海资信个人数据删除上传任务异常",e);
		}
		return RepeatStatus.FINISHED;
	}
}
